<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      margin: auto;
    }

    #app {
      perspective: 500px;
      perspective-origin: 50% 50%;
      transform-style: preserve-3d;
    }

    #block {
      width: 500px;
      height: 500px;
      margin: auto;
      background-color: #69c;
      transform: rotateX(45deg);
    }
  </style>
</head>

<body>
  <div id="app">
    <div id="block">
    </div>
  </div>
</body>

</html>